Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/global filtering #187

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Bugfix/global filtering #187

wants to merge 8 commits into from

Conversation

b-j-mills
Copy link
Collaborator

I changed the filter on food security to include all countries, and added a country filter to the funding data. I checked the IPC p-code mappings and they're pretty good. I had to add a couple extra matching rules to get some countries to match.

There are just a few mismatched units in GHA that I either want to match to admin 1 or add to the admin_fuzzy_dont list. @mcarans I think we should change admin_fuzzy_don't to include iso codes so we don't eliminate fuzzy matching globally for common words like "Central". Or we could make the mappings a little more flexible to allow us to match to XXX units. Which do you think makes more sense?

Copy link

github-actions bot commented Oct 15, 2024

Test Results

17 tests  ±0   17 ✅ ±0   19m 8s ⏱️ +11s
 1 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit 75e225e. ± Comparison against base commit b066623.

♻️ This comment has been updated with latest results.

@coveralls
Copy link

coveralls commented Oct 15, 2024

Pull Request Test Coverage Report for Build 11374655042

Details

  • 11 of 22 (50.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.5%) to 91.768%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/hapi/pipelines/database/funding.py 3 4 75.0%
src/hapi/pipelines/database/food_security.py 8 18 44.44%
Totals Coverage Status
Change from base Build 11356862602: -0.5%
Covered Lines: 1661
Relevant Lines: 1810

💛 - Coveralls

Copy link
Contributor

@mcarans mcarans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks fine to me and yes it would make sense to change admin_fuzzy_dont. I would make it so that it is based on parent|Central using similar logic to what's in get_admin_name_replacements in AdminLevel.

@b-j-mills
Copy link
Collaborator Author

Once we release the changes I made in hdx-python-country this will be ready to release!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants